package d7_homework.d1_homework.d3_thirdquestion;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data// get + set + 无参 + equals + toString + hashCode
@NoArgsConstructor//无参
@AllArgsConstructor//有参
public class User {
    private String userName;
    private String passWord;
    //为了保证User对象的唯一, 需要重写hashCode和equals
    //hashCode: 根据内容生成哈希值
    //equals: 避免哈希碰撞

}
